﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using FreeSql.DataAnnotations;

namespace tcm.entity
{
    //药品
    [Table(Name = "tcm_pharmaceutical")]
    public class Pharmaceutical
    {
        public long id { get; set; }

        //药品名称varchar(50)
        public string pname { get; set; }

        // decimal (10,0) DEFAULT NULL COMMENT '价格',
        public double price { get; set; }

        // `phm_type_id` bigint(64) DEFAULT NULL COMMENT '药品类型',
        public long phm_type_id{ get; set; }

        //`phm_no` varchar(50) DEFAULT NULL COMMENT '药品编号',
        public string phm_no { get; set; }

        // `phm_address` varchar(50) DEFAULT NULL COMMENT '药品产地',
        public string phm_address { get; set; }

        // varchar(100) DEFAULT NULL COMMENT '备注信息',
        public string remark { get; set; }

        // varchar(200) DEFAULT NULL COMMENT '用途',
        public string use { get; set; }

        // 单位
        public int? unit { get; set; }

        public long create_by { get; set; }
        //create_date datetime,
        public DateTime create_date { get; set; }
        //update_by bigint(64),
        public long update_by { get; set; }
        //update_date datetime,
        public DateTime update_date { get; set; }
    }
}
